<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	{$page.metacode}
	<title>{$page.title}</title>
	<link rel="stylesheet" type="text/css" href="{$tp}/style.css" media="screen" />
	{$page.head}
	<script type="text/javascript" charset="utf-8">
		{$page.script}
	</script>
</head>
<body>
	<div id="header">
		<div id="logo">
			<h1><a href="#">minf : not a framework</a></h1>
			<p>request handler & modular coding system for php5</a></p>
		</div>
		<!-- end #logo -->
		<div id="menu">
			<ul>
				{foreach from=$page.menu item=m}
				<li{if $m.active} class="active"{/if}><a href="{$m.link}">{$m.text}</a></li>			
				{/foreach}
			</ul>
		</div>
		<!-- end #menu -->
	</div>
	<!-- end #header -->
	<div id="page">
		<div id="content" {if $hidesidebar}style=""{/if}>
			{$page.content}
		</div>
		<!-- end #content -->
		{if !$hidesidebar}
		<div id="sidebar">
			<div id="sidebar-bgtop"></div>
			<div id="sidebar-content">
				<ul>
					<li id="search">
						<h2>Search</h2>
							<fieldset>
							<input type="text" id="s" name="s" value="" />
							<input type="button" id="x" value="Search" onclick="do_search();" />
							</fieldset>
						<br />
					</li>
					{$page.sidebar}
				</ul>
			</div>
			<div id="sidebar-bgbtm"></div>
		</div>
		{/if}
		<!-- end #sidebar -->
	</div>
	<!-- end #page -->
	<div id="footer">
		<p>copyleft, gpl, minf</p>
	</div>
	<!-- end #footer -->
	{$page.append}
</body>
</html>
